group { name: "elm/bubble/top_left/default";
   alias: "elm/bubble/base/default";
   images.image: "bub_base_tl.png" COMP;
   images.image: "bub_base_tr.png" COMP;
   parts {
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0; // no cc
         }
      }
      part { name: "elm.swallow.icon"; type: SWALLOW;
         scale: 1;
         description { state: "default" 0.0;
         fixed: 1 1;
            visible: 0;
            align: 0.0 0.0;
            rel1.offset: 4 4;
            rel2 {
               to_y: "elm.text";
               relative: 0.0 1.0;
               offset: 4 -5;
            }
            offscale;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            min: ICMIN ICMIN;
         }
      }
      part { name: "elm.text"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.0 0.0;
            rel1 {
               to_x: "elm.swallow.icon";
               relative: 1.0 0.0;
               offset: 4 4;
            }
            rel2 {
               to_x: "elm.info";
               relative: 0.0 0.0;
               offset: -5 4;
            }
            color_class: "/fg/normal/bubble/text";
            offscale;
            text { font: FNBD; size: 10;
               min: 0 1;
               max: 0 1;
               align: 0.0 0.0;
               text_class: "bubble";
            }
         }
      }
      part { name: "elm.info"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            align: 1.0 0.0;
            fixed: 1 1;
            rel1.relative: 1.0 0.0;
            rel1.offset: -5 4;
            rel2.relative: 1.0 0.0;
            rel2.offset: -5 4;
            color_class: "/fg/normal/bubble/info";
            offscale;
            text { font: FNBD; size: 10;
               min: 1 1;
               ellipsis: -1;
               max: 1 1;
               align: 1.0 0.0;
               text_class: "bubble_info";
            }
         }
      }
      part { name: "base"; mouse_events:  0;
         scale: 1;
         description { state: "default" 0.0;
            color_class: "/bg/normal/bubble";
            rel1 {
               to_y: "elm.swallow.icon";
               relative: 0.0 1.0;
               offset: 4 4;
            }
            rel2.offset: -5 -5;
            image.normal: "bub_base_tl.png";
            image.border: 24 0 12 0;
            image.middle: SOLID;
            fill.smooth: 0;
            offscale;
         }
         description { state: "rtl" 0.0;
            inherit: "default" 0.0;
            image.normal: "bub_base_tr.png";
            image.border: 0 24 12 0;
         }
      }
      part { name: "elm.swallow.content"; type: SWALLOW;
         scale: 1;
         description { state: "default" 0.0;
            rel.to: "base";
            rel1.offset: 5 9;
            rel2.offset: -6 -7;
            offscale;
         }
      }
   }
   programs {
      program { signal: "elm,state,icon,visible"; source: "elm";
         action: STATE_SET "visible" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "elm,state,icon,hidden"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "edje,state,rtl"; source: "edje";
         action: STATE_SET "rtl" 0.0;
         target: "base";
      }
      program { signal: "edje,state,ltr"; source: "edje";
         action: STATE_SET "default" 0.0;
         target: "base";
      }
   }
}

group { name: "elm/bubble/top_right/default";
   images.image: "bub_base_tr.png" COMP;
   images.image: "bub_base_tl.png" COMP;
   parts {
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0; // no cc
         }
      }
      part { name: "elm.swallow.icon"; type: SWALLOW;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 1 1;
            visible: 0;
            align: 1.0 0.0;
            aspect: 1.0 1.0; aspect_preference: VERTICAL;
            rel1.offset: -5 4;
            rel1.relative: 1.0 0.0;
            rel2 {
               to_y: "elm.text";
               relative: 1.0 1.0;
               offset: -5 -1;
            }
            offscale;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            min: ICMIN ICMIN;
         }
      }
      part { name: "elm.text"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.0 0.0;
            rel1.offset: 4 4;
            rel2 {
               to_x: "elm.info";
               relative: 0.0 0.0;
               offset: -5 4;
            }
            color_class: "/fg/normal/bubble/text";
            offscale;
            text { font: FNBD; size: 10;
               min: 0 1;
               max: 0 1;
               align: 0.0 0.0;
               text_class: "bubble";
            }
         }
      }
      part { name: "elm.info"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            align: 1.0 0.0;
            fixed: 1 1;
            rel1.relative: 1.0 0.0;
            rel1.offset: -5 4;
            rel2.to_x: "elm.swallow.icon";
            rel2.relative: 0.0 0.0;
            rel2.offset: -5 4;
            color_class: "/fg/normal/bubble/info";
            offscale;
            text { font: FNBD; size: 10;
               min: 1 1;
               ellipsis: -1;
               max: 1 1;
               align: 1.0 0.0;
               text_class: "bubble_info";
            }
         }
      }
      part { name: "base"; mouse_events:  0;
         scale: 1;
         description { state: "default" 0.0;
            color_class: "/bg/normal/bubble";
            rel1 {
               to_y: "elm.swallow.icon";
               relative: 0.0 1.0;
               offset: 4 4;
            }
            rel2.offset: -5 -5;
            image.normal: "bub_base_tr.png";
            image.border: 0 24 12 0;
            image.middle: SOLID;
            fill.smooth: 0;
            offscale;
         }
         description { state: "rtl" 0.0;
            inherit: "default" 0.0;
            image.normal: "bub_base_tl.png";
            image.border: 24 0 12 0;
         }
      }
      part { name: "elm.swallow.content"; type: SWALLOW;
         scale: 1;
         description { state: "default" 0.0;
            rel.to: "base";
            rel1.offset: 5 9;
            rel2.offset: -6 -7;
            offscale;
         }
      }
   }
   programs {
      program { signal: "elm,state,icon,visible"; source: "elm";
         action: STATE_SET "visible" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "elm,state,icon,hidden"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "edje,state,rtl"; source: "edje";
         action: STATE_SET "rtl" 0.0;
         target: "base";
      }
      program { signal: "edje,state,ltr"; source: "edje";
         action: STATE_SET "default" 0.0;
         target: "base";
      }
   }
}

group { name: "elm/bubble/bottom_left/default";
   images.image: "bub_base_bl.png" COMP;
   images.image: "bub_base_br.png" COMP;
   parts {
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0; // no cc
         }
      }
      part { name: "elm.swallow.icon"; type: SWALLOW;
         description { state: "default" 0.0;
            fixed: 1 1;
            visible: 0;
            align: 0.0 1.0;
            aspect: 1.0 1.0; aspect_preference: VERTICAL;
            rel1 {
               to_y: "elm.text";
               offset: 4 0;
            }
            rel2 {
               relative: 0.0 1.0;
               offset: 4 -5;
            }
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            min: ICMIN ICMIN;
         }
      }
      part { name: "elm.text"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.0 1.0;
            rel1 {
               to_x: "elm.swallow.icon";
               relative: 1.0 1.0;
               offset: 4 -5;
            }
            rel2 {
               to_x: "elm.info";
               relative: 0.0 1.0;
               offset: -5 -5;
            }
            offscale;
            color_class: "/fg/normal/bubble/text";
            text { font: FNBD; size: 10;
               min: 0 1;
               max: 0 1;
               align: 0.0 1.0;
               text_class: "bubble";
            }
         }
      }
      part { name: "elm.info"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            align: 1.0 1.0;
            fixed: 1 1;
            rel1.relative: 1.0 1.0;
            rel1.offset: -5 -5;
            rel2.relative: 1.0 1.0;
            rel2.offset: -5 -5;
            offscale;
            color_class: "/fg/normal/bubble/info";
            text { font: FNBD; size: 10;
               min: 1 1;
               ellipsis: -1;
               max: 1 1;
               align: 1.0 1.0;
               text_class: "bubble_info";
            }
         }
      }
      part { name: "base"; mouse_events:  0;
         scale: 1;
         description { state: "default" 0.0;
            color_class: "/bg/normal/bubble";
            rel1.offset: 4 4;
            rel2 {
               to_y: "elm.swallow.icon";
               relative: 1.0 0.0;
               offset: -5 -5;
            }
            image.normal: "bub_base_bl.png";
            image.border: 24 0 0 13;
            image.middle: SOLID;
            fill.smooth: 0;
            offscale;
         }
         description { state: "rtl" 0.0;
            inherit: "default" 0.0;
            image.normal: "bub_base_br.png";
            image.border: 0 24 0 13;
         }
      }
      part { name: "elm.swallow.content";
         type: SWALLOW;
         description { state: "default" 0.0;
            rel.to: "base";
            rel1.offset: 5 4;
            rel2.offset: -6 -12;
         }
      }
   }
   programs {
      program { signal: "elm,state,icon,visible"; source: "elm";
         action: STATE_SET "visible" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "elm,state,icon,hidden"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "edje,state,rtl"; source: "edje";
         action: STATE_SET "rtl" 0.0;
         target: "base";
      }
      program { signal: "edje,state,ltr"; source: "edje";
         action: STATE_SET "default" 0.0;
         target: "base";
      }
   }
}

group { name: "elm/bubble/bottom_right/default";
   images.image: "bub_base_br.png" COMP;
   images.image: "bub_base_bl.png" COMP;
   parts {
      part { name: "event"; type: RECT;
         description { state: "default" 0.0;
            color: 0 0 0 0; // no cc
         }
      }
      part { name: "elm.swallow.icon"; type: SWALLOW;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 1 1;
            visible: 0;
            align: 1.0 1.0;
            aspect: 1.0 1.0; aspect_preference: VERTICAL;
            rel1 {
               to_y: "elm.text";
               offset: -5 0;
            }
            rel2 {
               relative: 1.0 1.0;
               offset: -5 -5;
            }
            offscale;
         }
         description { state: "visible" 0.0;
            inherit: "default" 0.0;
            visible: 1;
            min: ICMIN ICMIN;
         }
      }
      part { name: "elm.text"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            fixed: 0 1;
            align: 0.0 1.0;
            rel1 {
               relative: 0.0 1.0;
               offset: 4 -5;
            }
            rel2 {
               to_x: "elm.info";
               relative: 0.0 1.0;
               offset: -5 -5;
            }
            color_class: "/fg/normal/bubble/text";
            offscale;
            text { font: FNBD; size: 10;
               min: 0 1;
               max: 0 1;
               align: 0.0 1.0;
               text_class: "bubble";
            }
         }
      }
      part { name: "elm.info"; type: TEXT; mouse_events: 0;
         scale: 1;
         description { state: "default" 0.0;
            align: 1.0 1.0;
            fixed: 1 1;
            rel1.relative: 1.0 1.0;
            rel1.offset: -5 -5;
            rel2.to_x: "elm.swallow.icon";
            rel2.relative: 0.0 1.0;
            rel2.offset: -5 -5;
            offscale;
            color_class: "/fg/normal/bubble/info";
            text { font: FNBD; size: 10;
               min: 1 1;
               ellipsis: -1;
               max: 1 1;
               align: 1.0 1.0;
               text_class: "bubble_info";
            }
         }
      }
      part { name: "base"; mouse_events:  0;
         scale: 1;
         description { state: "default" 0.0;
            color_class: "/bg/normal/bubble";
            rel1.offset: 4 4;
            rel2 {
               to_y: "elm.swallow.icon";
               relative: 1.0 0.0;
               offset: -5 -5;
            }
            image.normal: "bub_base_br.png";
            image.border: 0 24 0 13;
            image.middle: SOLID;
            fill.smooth: 0;
            offscale;
         }
         description { state: "rtl" 0.0;
            inherit: "default" 0.0;
            image.normal: "bub_base_bl.png";
            image.border: 24 0 0 13;
         }
      }
      part { name: "elm.swallow.content";
         type: SWALLOW;
         description { state: "default" 0.0;
            rel.to: "base";
            rel1.offset: 5 4;
            rel2.offset: -6 -12;
         }
      }
   }
   programs {
      program { signal: "elm,state,icon,visible"; source: "elm";
         action: STATE_SET "visible" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "elm,state,icon,hidden"; source: "elm";
         action: STATE_SET "default" 0.0;
         target: "elm.swallow.icon";
      }
      program { signal: "edje,state,rtl"; source: "edje";
         action: STATE_SET "rtl" 0.0;
         target: "base";
      }
      program { signal: "edje,state,ltr"; source: "edje";
         action: STATE_SET "default" 0.0;
         target: "base";
      }
   }
}
